


exports.handleHeader= (req, res, next) => {
    res.setHeader('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE')

    res.setHeader('Access-Control-Allow-Origin', '*')
    // 支持所有请求

    res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization, X-Requested-With');

    next()
}




